package com.sk.bilibili.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sk.bilibili.bean.Them;
import com.sk.bilibili.dto.SearchInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
* @author 邵康
* @date 2021/11/23 16:11
*/
@Repository
public interface ThemMapper extends BaseMapper<Them> {

    List<Them> getUpdate(Integer updateDay, Integer typeId);

    List<Them> getRank(Integer size, Integer typeId, Boolean finish);

    //  注意分页参数要放到第一位
    Page<Them> searchThem(Page<Them> page,SearchInfo searchInfo);

    List<Them> getRandom(Integer size, Boolean finish, Integer typeId);

}
